﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopicIdeaStatus.ascx.cs" Inherits="Lenovo.CFI.Web.VP.TopicIdeaStatus" %>
<tbwc:StyleSheetControl ID="SscList" runat="server" CssPath="list.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccAc" runat="server" CssPath="VP/autocomplete.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SccDialogs" runat="server" CssPath="modaldialogs.css"></tbwc:StyleSheetControl>
<tbwc:StyleSheetControl ID="SscThis" runat="server" CssPath="VP/topic/topicideastatus.css"></tbwc:StyleSheetControl>

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" CombineScripts="false" ID="ScriptManager1" >
    <Services>
        <asp:ServiceReference  Path="~/WS/AjaxUser.asmx" />
    </Services>
    <Scripts>
        <asp:ScriptReference Path="~/js/jquery-1.4.2.js" />
        <asp:ScriptReference Path="~/js/jquery.autocomplete.js" />
    </Scripts>
</ajaxToolkit:ToolkitScriptManager>


<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <div id="relatedoperation">
            <div style="float:right" class="operation"><asp:Button ID="BtnOrder" runat="server" 
                    SkinID="EditPrimary" Text="Order" ToolTip="Change Order" onclick="BtnOrder_Click"/></div>
        </div>
        <div class="dataListArea">
            <tbwc:GridViewEx ID="GvList" runat="server" SkinID="List" DataKeyNames="ID"
                AllowPaging="false" OnRowDataBound="GvList_RowDataBound" 
                onrowcommand="GvList_RowCommand">
                <Columns>
                    <asp:TemplateField HeaderText="No.">
                        <itemstyle cssclass="listNo" />
                        <itemtemplate><asp:Literal ID="LtrNo" runat="server"></asp:Literal></itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Idea Name">
                        <itemtemplate><asp:Literal ID="LtrTitle" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="title" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Author">
                        <itemtemplate><asp:Literal ID="LtrOwner" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="owner" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Final Type">
                        <itemtemplate><asp:Literal ID="LtrType" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="type" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Value">
                        <itemtemplate><asp:Literal ID="LtrValue" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="value" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Next Action">
                        <itemtemplate><asp:Literal ID="LtrNextAction" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="nextaction" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IP">
                        <itemtemplate><asp:Literal ID="LtrIP" runat="server"></asp:Literal></itemtemplate>
                        <itemstyle cssclass="ip" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="">
                        <ItemTemplate><asp:ImageButton ID="BtnEdit" runat="server" CausesValidation="False" CommandName="OpenEdit" 
                            SkinID="ListEdit" CommandArgument='<%# Eval("ID")%>' /></ItemTemplate>
                        <ItemStyle CssClass="listOp" />
                    </asp:TemplateField>
                </Columns>
            </tbwc:GridViewEx>
        </div>

        <asp:Button ID="BtnHiddenEdit" runat="Server" Style="display: none" />
        <ajaxToolKit:ModalPopupExtender ID="MpeEdit" runat="server" TargetControlID="BtnHiddenEdit"
            PopupControlID="PnlEdit" CancelControlID="BtnCancel" BackgroundCssClass="modalBackground"
            PopupDragHandleControlID="PnlEditCaption" Drag="false">
        </ajaxToolKit:ModalPopupExtender>
        <asp:Panel ID="PnlEdit" runat="server" CssClass="modalBox detail" Style="display: none;" Width="480px">
            <asp:Panel ID="PnlEditCaption" runat="server" CssClass="caption" Style="margin-bottom: 10px; cursor: hand;">
                Award and Executor</asp:Panel>
            <div><asp:Label ID="LblAward" runat="server" AssociatedControlID="DdlAward" Text="Award:" CssClass="title"></asp:Label><asp:DropDownList
                    ID="DdlAward" runat="server" Width="8em">
                        <asp:ListItem Text=" " Value="-1"></asp:ListItem>
                        <asp:ListItem Text="1" Value="1"></asp:ListItem>
                        <asp:ListItem Text="2" Value="2"></asp:ListItem>
                        <asp:ListItem Text="3" Value="3"></asp:ListItem>
                    </asp:DropDownList></div>
            <div><asp:Label ID="LblAwardComment" runat="server" AssociatedControlID="TxtAwardComment" Text="Award Comment:" CssClass="title"></asp:Label><asp:TextBox 
                ID="TxtAwardComment" runat="server" Width="20em" TextMode="MultiLine" Rows="3"></asp:TextBox></div>

            <div id="DivExecutor" runat="server" visible="false"><asp:Label ID="LblExecutor" runat="server" AssociatedControlID="OuacExecutor" Text="Executor:" CssClass="title"></asp:Label><tbwc:OneUserAutoComplete
                ID="OuacExecutor" runat="server" Width="8em" AcServiceUrl="WS/AjaxUserAc.aspx" 
                CheckServiceUrl="Lenovo.CFI.Web.WS.AjaxUser.CheckItCodes"></tbwc:OneUserAutoComplete></div>

            <div style="white-space: nowrap; text-align: center; margin-top:2em;">
		        <asp:Button ID="BtnSave" runat="server" Text="Save" OnClick="BtnSave_Click" CausesValidation="true"/>
		        <asp:Button ID="BtnCancel" runat="server" CausesValidation="false" Text="Cancel"/>
	        </div>
        </asp:Panel>

        <asp:Button ID="BtnHiddenReviewType" runat="Server" Style="display: none" />
        <ajaxToolKit:ModalPopupExtender ID="MpeReviewType" runat="server" TargetControlID="BtnHiddenReviewType"
            PopupControlID="PnlReviewType" CancelControlID="BtnReviewTypeCancel" BackgroundCssClass="modalBackground"
            PopupDragHandleControlID="PnlReviewTypeCaption" Drag="false">
        </ajaxToolKit:ModalPopupExtender>
        <asp:Panel ID="PnlReviewType" runat="server" CssClass="modalBox detail" Style="display: none;" Width="480px">
            <asp:Panel ID="PnlReviewTypeCaption" runat="server" CssClass="caption" Style="margin-bottom: 10px; cursor: hand;">
                Reset Type</asp:Panel>
            
            <div><asp:Label ID="LblReviewType" runat="server" AssociatedControlID="DdlReviewType" Text="ReviewType:" CssClass="title"></asp:Label><asp:DropDownList 
                    ID="DdlReviewType" runat="server" Width="10em"></asp:DropDownList></div>

            <div style="white-space: nowrap; text-align: center; margin-top:2em;">
		        <asp:Button ID="BtnReviewTypeSave" runat="server" Text="Save" OnClick="BtnReviewTypeSave_Click" CausesValidation="true"/>
		        <asp:Button ID="BtnReviewTypeCancel" runat="server" CausesValidation="false" Text="Cancel"/>
	        </div>
        </asp:Panel>


    </ContentTemplate>
</asp:UpdatePanel>